{% extends 'worker_salary.html'%}
{% block content%}
<div class="container-fluid"style="width:80%">
    <div style="margin-bottom:15px;"class=clearfix>
        <a href="/worker_add"class='btn btn-primary'>
            <span class="glyphicon glyphicon-plus-sign">添加</span>
        </a>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">送水工工资列表</div>
        <div class="panel-body">
            <table class="table table-bordered table-hover">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>姓名</th>
                    <th>底薪</th>
                    <th>提成</th>
                    <th>送水量</th>
                    <th>累计工资</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {% for obj in queryset%}
                <tr>
                    <td>{{obj.id}}</td>
                    <td>{{obj.wname}}</td>
                    <td>{{obj.base_salary}}</td>
                    <td>{{obj.commision}}</td>
                    
                    <td>{{obj.commision}}</td>
                    <td><a href="/worker_reset/{{obj.id}}">重置密码</a></td>
                    <td>
                        <a href="/worker_edit/{{obj.id}}/"class='btn btn-primary btn-xs'>编辑</a>
                        <a href="/worker_delete/{{obj.id}}/"class='btn btn-danger btn-xs'>删除</a>
                    </td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
        </div>
      </div>
      <div class="clearfix"></div>
    <ul class="pagination"style="float:right">
        {{page_string}}
     </ul>
</div>

{% endblock %}